import request from '@/utils/request'


export function findList(params) {
    return request({
        url: '/adminDept/list',
        method: 'get',
        params:params
    })
}

export function deleteOne(id) {
    return request({
        url: '/adminDept/'+id,
        method: 'delete',
    })
}

export function getDetail(id) {
    return request({
        url: '/adminDept/detail/'+id,
        method: 'get'
    })
}

export function saveOne(data) {
    return request({
        url: '/adminDept',
        method: 'post',
        data:{entity: data}
    })
}

export function treeList() {
    return request({
        url: '/adminDept/tree',
        method: 'get'
    })
}


